<?php include '../nav.php';
	
	$pid = ($_SESSION['home']['id']);
	// var_dump($pid);exit;

	// var_dump($_SESSION['home']);exit;
	$sql = 'select `id`,`pwd`
			from user
			where id='.$pid.'';
			// echo $sql;exit;
	$list = query($sql)[0];
	// var_dump($list);exit;




 ?>
<link rel="stylesheet" href="<?= CSS?>space.css">
<!-- <div class='hr-20'></div> -->
<!-- <div class='hr-20'></div> -->
<!-- 修改密码 -->
	<div id='main'>
		<div class='member_left'>
			<h3>
				<a href="<?= URL?>404.php">个人中心</a>
			</h3>
			<div class='order'>
				<h4>我的订单</h4>
				<ul>
					<li><a href="receive.php">待收货</a></li>
					<li><a href="pay.php">待付款</a></li>
					<li><a href="orders.php">全部订单</a></li>
				</ul>
			</div>
			<div class='order'>	
				<h4>账号信息</h4>
				<ul>
					<li><a href="personal.php">个人资料</a></li>
					<li class='receiving'><a href="alter.php">修改密码</a></li>
				</ul>
			</div>
		</div>
		<div class='member_right'>
			<h4>个人资料</h4>
			<form action="action.php?bz=editpwd" method='post'>
			<input type="hidden" name="old_pwd" value="<?= $list['pwd']?>">
				<div class='personal'>
					<dl>
						<dt>原密码: </dt>
						<dd><input type="password" name='pwd'></dd>
					</dl>
					<dl>
						<dt>新密码: </dt>
						<dd><input type="password" name='new_pwd' ></dd>
					</dl> 
					<dl>
						<dt>确认密码: </dt>
						<dd><input type="password" name='new_repwd'></dd>
					</dl>
					<dl>
						<dt></dt>
						<dd><input type="submit" class='update_btn'></dd>
					</dl>
				</div>
			</form>
		</div>
	</div>

<?php include '../foot.php' ?>
	